﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Models;

[Table("WorkerOrder")]
public partial class WorkerOrder
{
    [Key]
    [Column("Id_WorkerOrder")]
    public Guid IdWorkerOrder { get; set; }

    /// <summary>
    /// 上架or下架
    /// </summary>
    public string Type { get; set; } = null!;

    /// <summary>
    /// 起始位置
    /// </summary>
    public string StartPlace { get; set; } = null!;

    /// <summary>
    /// 目标位置
    /// </summary>
    public string EndPlace { get; set; } = null!;

    /// <summary>
    /// 箱盒
    /// </summary>
    public string BoxCode { get; set; } = null!;

    public DateTime CreatTime { get; set; }

    [Column("TheMaterialOrederId_MaterialOder")]
    public Guid TheMaterialOrederIdMaterialOder { get; set; }

    [ForeignKey("TheMaterialOrederIdMaterialOder")]
    [InverseProperty("WorkerOrders")]
    public virtual MaterialOrder TheMaterialOrederIdMaterialOderNavigation { get; set; } = null!;
}
